import * as PIXI from 'pixi.js'
import { textureSource } from '../asset'

export default () => {
  // 流苏
  const sprite = new PIXI.Sprite(
    new PIXI.Texture({
      source: textureSource!,
      frame: new PIXI.Rectangle(343, 96, 25, 106),
    }),
  )
  sprite.anchor.set(0.5)
  sprite.position.set(4, (101 + 106) / 2)
  return sprite
}
